package cn.huoyingkeji.system.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import cn.huoyingkeji.mybitisplus.domain.TenantEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 职位实体
 **/
@Getter
@Setter
@TableName("t_sys_position")
public class SysPosition extends TenantEntity {


    private static final long serialVersionUID = 1L;

    /** 组织id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;

    /** 名称 */
    private String name;

    /** 编码 */
    private String code;

    /** 分类 */
    private String category;

    /** 排序码 */
    private Integer sortCode;

    /** 扩展信息 */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String extJson;
}
